<div id='user_panel_<%= post.id %>' style="position: absolute;display:none;z-index:5000;" class="popup-user-panel">
    <table cellspacing="0" cellpadding="0" border="0">
      <tbody><tr>
        <td>
            <strong><%= post.user.login %></strong>
            <%= link_to "журнал", user_posts_path(post.user) %> <%= link_to "инфо", user_path(post.user) %>
						<br/>
						<% if logged_in? %>
							<% if current_user.is_friends_with? post.user %>
									друг
							<% else %>
								<div id='add_friend'>
									<%= link_to_remote "добавить в друзья", :update => "add_friend", :url => { :controller=>"friends", :action => "request_friendship", :friend_id => post.user.id } %>
								</div>
							<% end %>
						<% end %>
        </td>
        <td><%= link_to avatar50(post.user), user_path(post.user) %></td>
      </tr>
    </tbody></table>
</div>
